package com.itheima.service.mongo;

import com.itheima.domain.mongo.Sound;
import com.itheima.domain.mongo.SoundUser;

import java.util.List;

public interface SoundService {

    //保存或更新音声文件信息
    Sound saveOrUpdate(Sound sound);

    //随机查询
    List<Sound> find(Long userId);

    //查询用户还可以接受语音次数
    Integer getCount(Long userId,Long minDate,Long maxDate);

    //保存接受语音用户信息
    void saveSoundUser(SoundUser soundUser);
}
